﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace NoteHelper.Model
{
    /// <summary>
    /// 账户信息
    /// </summary>
    public class Account
    {
        /// <summary>
        /// c开头：现金
        /// b开头：银行账号
        /// </summary>
        [DisplayName("账户编号")]
        [StringLength(4)]
        public string Id { get; set; }
        [DisplayName("账户名称")]
        [StringLength(20)]
        public string Name { get; set; }
        [DisplayName("账户描述")]
        [StringLength(256)]
        public string Description { get; set; }
        [DisplayName("开户日期")]
        public DateTime CreateDate { get; set; }
        [DisplayName("是否作废")]
        public bool Discarded { get; set; }
        [DisplayName("作废日期")]
        public DateTime? DiscardedDate { get; set; }
    }
}
